package com.twu.biblioteca.processor;

import com.twu.biblioteca.controller.LibraryController;
import com.twu.biblioteca.controller.UserController;
import com.twu.biblioteca.model.User;
import com.twu.biblioteca.ui.UserView;

/**
 * Created by madhu on 2/5/14.
 */
public class UserProfileMenuProcessor implements MenuProcessor {
    @Override
    public void processLibraryMenu(LibraryController libraryController) {
        if(!User.isLoggedIn()) UserController.promptForLogin(libraryController.getLibraryView());
        else new UserView().displayUserProfile();
    }
}
